/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

Ext.ns("Extmx.form");
Extmx.form.ComboSiNo=Ext.extend(Ext.form.ComboBox,{
	emptyText: 'Si/No',
	//typeAhead: true,
	triggerAction: 'all',
	editable: false,
    mode: 'local',

	/**
	 * 'boolean'||'texto'
	 */
	valueField: 'boolean',

 	initComponent:function(){
            var config={
                displayField: 'texto',
                store: new Ext.data.ArrayStore({
                    id: 0,
                    fields: [
                        'boolean',
                        'texto'
                    ],
                    data: [[1, 'Si'], [0, 'No']]
                })
            };
 		Ext.apply(this,config);
 		Extmx.form.ComboSiNo.superclass.initComponent.apply(this,arguments);
 	}
 });

Ext.reg('combosino',Extmx.form.ComboSiNo);
